package com.example.yuejian.yuejian.base;

import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by Administrator on 2017/9/18.
 */

public class BaseActivity extends AppCompatActivity {
    private SharedPreferences sp;
    public String getUser_id() {
        sp = getSharedPreferences("UserInfo", Context.MODE_PRIVATE);
        return sp.getString("user_id",null);
    }
    public String getUserclub_id() {
        sp = getSharedPreferences("UserInfo", Context.MODE_PRIVATE);
        return sp.getString("club_id",null);
    }

}
